MultiSafepay\WooCommerce\PaymentMethods\Base\BasePaymentMethod D

Total Complexity 126
Dependencies 10
Dependents 4
Total lines 915
Lines of code 539
Logical lines of code 217
Comment lines 177
Methods 34
Properties 11

Methods 34

Method Rating Maintainability Complexity Lines of code
add_form_fields()
C
28
18 160
enqueue_multisafepay_scripts_by_gateway_code()
B
43 19 41
validate_fields()
A
52 10 23
is_payment_component_enabled()
S
55 7 20
get_payment_method_type()
S
58 7 18
admin_editing_checkout_page()
S
61 7 10
__construct()
S
45 3 43
common_wallets_data()
S
55 4 19
build_googlepay_wallet_variables()
S
53 3 24
build_applepay_wallet_variables()
S
55 3 19
get_google_apple_pay_use_button()
S
66 4 7
can_refund_order()
S
65 4 9
enqueue_payment_component_scripts()
S
60 3 12
enqueue_payment_component_styles()
S
64 3 11
process_payment()
S
54 2 19
is_qr_only_enabled()
S
63 3 10
is_qr_enabled()
S
63 3 10
is_ideal_2_0()
S
64 3 10
is_tokenization_enabled()
S
67 2 7
has_fields()
S
72 2 6
check_direct_payment_methods_without_components()
S
68 2 8
is_payment_method_type_direct()
S
75 2 4
is_woocommerce_checkout_block_active()
S
79 1 3
get_logo()
S
81 1 3
get_payment_method_icon()
S
81 1 3
payment_fields()
S
80 1 3
get_payment_method_description()
S
70 1 7
get_payment_method_id()
S
80 1 3
get_order_statuses()
S
72 1 5
get_defined_direct_payment_methods_without_components()
S
79 1 3
get_payment_method_gateway_code()
S
81 1 3
get_countries()
S
76 1 4
get_user_roles()
S
67 1 9
get_payment_method_title()
S
81 1 3